#!/bin/bash  

###########################################
apt_install_command="sudo apt-get install -y"

###########################################
$apt_install_command curl wget gnupg lsb-release lsb-core usbutils
$apt_install_command vim ack tree cmake cmake-qt-gui git gedit fzf locate

###########################################
# 修复tab自动补全问题
$apt_install_command bash-completion 

# 定义要检查的字符串  
check_string='if [ -f /etc/bash_completion ]; then . /etc/bash_completion; fi'  
# 使用grep检查.bashrc文件中是否已包含该字符串  
if ! grep -Fxq "$check_string" ~/.bashrc; then  
    echo "$check_string" >> ~/.bashrc  
    echo "已追加bash_completion配置到.bashrc"  
else  
    echo ".bashrc文件中已存在bash_completion配置"  
fi
